package com.fsc.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fsc.entity.domain.HomeworkInfo;
import com.fsc.entity.domain.TeacherInfo;
import com.fsc.entity.vo.HomeworkInfoVO;
import com.fsc.entity.vo.StudentCompletionVO;
import com.fsc.mapper.HomeworkInfoMapper;
import com.fsc.mapper.StudentInfoMapper;
import com.fsc.mapper.TeacherInfoMapper;
import com.fsc.service.HomeworkInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Date;
import java.time.LocalDate;
import java.util.List;
import java.util.stream.Collectors;

@Service
public class HomeworkInfoServiceImpl extends ServiceImpl<HomeworkInfoMapper, HomeworkInfo> implements HomeworkInfoService {

	@Autowired
	private HomeworkInfoMapper homeworkInfoMapper;

	@Override
	public List<HomeworkInfoVO> getHomeworkInfoVOsByTeacherId(Integer teacherId) {
		// Get all HomeworkInfoVO by teacherId from the database
		return homeworkInfoMapper.getHomeworkInfoVOsByTeacherId(teacherId);
	}


}